<?php /* Smarty version 2.6.19, created on 2012-10-03 12:49:28
         compiled from D:/xampp/htdocs/nghiepquang/templates/NewsHomeHot/NewsHomeHot.tpl */ ?>
<?php echo '
<style>
    ul.tcs-new-hot {
        padding : 10px 3px 7px 5px;
        margin-left: 0;
    }

    ul.tcs-new-hot>li {
        border-bottom: 1px solid #CCCCCC;
        padding: 5px 0;
    }

    ul.tcs-new-hot>li:last-child {
        border-bottom : none }

</style>
'; ?>

<?php if ($this->_tpl_vars['hot_newss'] && $this->_tpl_vars['title_news']): ?>
<div class="box">
<div class="title_sidebar">
    <p><?php echo $this->_tpl_vars['title_news']; ?>
</p>
</div>
<div class="tintuc">
    <ul class="tcs-new-hot">
        <?php $_from = $this->_tpl_vars['hot_newss']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['hot_news'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['hot_news']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['item']):
        $this->_foreach['hot_news']['iteration']++;
?>
            <li>
                <a style="font-weight: normal;" href="<?php echo $this->_tpl_vars['item']['url']; ?>
"><?php echo $this->_tpl_vars['item']['title']; ?>
</a>
            </li>

        <?php endforeach; endif; unset($_from); ?>
    </ul>
</div>
</div>
<?php endif; ?>
<?php if ($this->_tpl_vars['is_admin']): ?>
    <?php echo $this->_tpl_vars['begin_form']; ?>

<div style="cursor:pointer;margin:10px 0;text-align: center;" onclick="jQuery('#admin_hot_news').toggle();"><strong>Quản lý tin HOT</strong></div>
<div style=";margin:10px 0" id="admin_hot_news" class="hide">
    <?php echo $this->_tpl_vars['msg']; ?>
<br/>
    <table cellpadding="5" cellspacing="0" border="0" width="100%">
        <tr>
            <td width="23%" align="right"><strong>Tiêu đề:</strong></td>
            <td width="77%"><input type="text" name="title_news" value="<?php echo $this->_tpl_vars['title_news']; ?>
"/></td>
        </tr>
        <tr>
            <td align="right"><strong>ID tin:</strong></td>
            <td><input name="news_ids" type="text" id="news_ids" value="<?php echo $this->_tpl_vars['news_ids']; ?>
"/> <strong> (cách nhau bởi dấu (,) VD: 1,2,34)</strong></td>
        </tr>
    </table>
    <input type="submit" name="submit" value="Cập nhật"/>
</div>
    <?php echo $this->_tpl_vars['end_form']; ?>

<?php endif; ?>